﻿using Newtonsoft.Json;
using System;

namespace LightWadf.Core.Result
{
    public class JsonResult
    {
        private string json = null;
        public string JsonString
        {
            get
            {
                return this.json;
            }
        }

        public JsonResult(object obj)
        {
            if(obj != null)
            {
                this.json = JsonConvert.SerializeObject(obj);
            }
        }
    }
}